Ektron CMS400.Net Reference

>>Managing Content > Validating XHTML Content and Accessibility > Validating Content for Compliance with XHTML Standards

Validating Content for Compliance with XHTML Standards

Ektron CMS400.NET content can be validated against the XHTML 1.1 standard. To do so, you must define the Web sites that validate schema files and schema namespaces.

Here are two sites that can validate content using the WC3 Markup Validation Services.

schema files - http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd

schema namespaces - http://www.w3.org/1999/xhtml

Defining the XHTML Validation Schemas

To validate content against XHTML standards, follow these steps.

1. Using Visual Studio, open site root/Workarea/edit.aspx.vb.

2. Find the section indicated below.

3. Using Intellisense, enter SchemaFiles and SchemaNamespaces properties to define the validating Web sites. They accept an array of strings and go in pairs. Here are examples.

C#

ContentDesigner1.SchemaFiles = new string[] {"http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd"};

ContentDesigner1.SchemaNamespaces = new string[] { "http://www.w3.org/1999/xhtml" };

VB.Net

With m_ ContentDesigner1

.SchemaFiles = New String() {" http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd"}

.SchemaNamespaces = New String() {"http://www.w3.org/1999/xhtml”}

End With


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.